﻿using Newtonsoft.Json;

namespace DingTalk.Sdk.Request
{
    public class LinkRequest : IRequest
    {
        [JsonProperty("msgtype")]
        public string Msgtype { get; } = "link";

        [JsonProperty("link")]
        public Link Link { get; set; }
    }

    public class Link
    {
        [JsonProperty("text")]
        public string Text { get; set; }

        [JsonProperty("title")]
        public string Title { get; set; }

        [JsonProperty("picUrl")]
        public string PicUrl { get; set; }

        [JsonProperty("messageUrl")]
        public string MessageUrl { get; set; }
    }
}
